import { lazy } from "react";
const routes = [
  // 财务模块
  {
    path: "/accountManger/accountAdjust", //账务调整
    view: "accountManger/accountAdjust",
  },
  {
    path: "/accountManger/reduceDamages", //违约金减免
    view: "accountManger/reduceDamages",
  },
  {
    path: "/accountManger/accountScrap", //账单作废
    view: "accountManger/accountScrap",
  },
  {
    path: "/accountManger/cancelAccount", //收费销账
    view: "accountManger/cancelAccount",
  },
  {
    path: "/accountManger/settleAccount", //预存款扣费
    view: "accountManger/settleAccount",
  },
  {
    path: "/404",
    view: "notFound",
  },
  {
    path: "/login",
    view: "login",
  },
];

for (const item of routes) {
  if (item.view) {
    item.component = lazy(() => import("@pages/" + item.view));
  }
}

export default routes;
